Computer and Modernization ›› 2011, Vol. 193 ›› Issue (9): 215-219.doi: 10.3969/j.issn.1006-2475.2011.09.058
• 应用与开发 • Previous Articles Next Articles
SUN Jian-jie, CHEN Jia-pin
Received:
Revised:
Online:
Published:
Abstract: For the lack of a standard reader-writer lock mechanism for the multi-thread synchronization in the Windows environment, the paper discusses three implementations on the reader-writer lock in use of the critical section and gradually reveals the advantages and disadvantages. The design of a reader-writer lock can be achieved by numbers of critical sections, and the different combinations will have the diverse read / write priority tendencies. Because multiple threads try to enter and leave the readerwriter lock on the complex cross-operation, there needs further analysis and testing for the internal details of the critical section in the specific circumstances to ultimately ensure the reliability of the reader-writer lock’s implementation. The paper also provides some details on try-lock mechanism.
Key words: multi-thread synchronization, reader-writer lock, critical section, dead lock, write priority
CLC Number:
TP311.52
SUN Jian-jie;CHEN Jia-pin. ]Implementation of Reader-writer Lock by Critical Section[J]. Computer and Modernization, 2011, 193(9): 215-219.
0 / / Recommend
Add to citation manager EndNote|Ris|BibTeX
URL: http://www.c-a-m.org.cn/EN/10.3969/j.issn.1006-2475.2011.09.058
http://www.c-a-m.org.cn/EN/Y2011/V193/I9/215